//
//  IngredientTableViewCell.m
//  KeepFit
//
//  Created by dllo on 15/11/1.
//  Copyright © 2015年 Fuzzie Liu. All rights reserved.
//

#import "IngredientTableViewCell.h"

@implementation IngredientTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.chineseLab = [[UILabel alloc] init];
        self.chineseLab.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.chineseLab];
        
        self.energyLab = [[UILabel alloc] init];
        self.energyLab.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.energyLab];
        
        self.remarkLab = [[UILabel alloc] init];
        self.remarkLab.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.remarkLab];
        
    }
    
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.chineseLab.frame = CGRectMake(0, 0, self.contentView.frame.size.width / 3, self.contentView.bounds.size.height);
    self.energyLab.frame = CGRectMake(self.chineseLab.frame.size.width, 0, self.contentView.frame.size.width / 3, self.contentView.bounds.size.height);
    self.remarkLab.frame = CGRectMake(self.energyLab.frame.size.width*2, 0, self.contentView.frame.size.width / 3, self.contentView.bounds.size.height);
    
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
